gh-116738: Make grp module thread-safe#135434
Conversation
|
Note: I am not sure if there is a CI setup where |
|
🤖 New build scheduled with the buildbot fleet by @colesbury for commit 269b454 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F135434%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
@yoney - Can you merge main and fix up the conflicts? |
I rebased and force push but I think this is not the right way, I should have merged the main on top of my branch, I am sorry. |
No worries! |
ZeroIntensity
left a comment
There was a problem hiding this comment.
The core changes look good to me, just a few comments about the new threading_helper function.
Misc/NEWS.d/next/Core_and_Builtins/2025-06-12-00-03-34.gh-issue-116738.iBBAdo.rst
Outdated
Show resolved
Hide resolved
…e-116738.iBBAdo.rst
|
@kumaraditya303 Thank you for the review! |
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- (cherry picked from commit 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
|
GH-136658 is a backport of this pull request to the 3.14 branch. |
gh-116738: Make grp module thread-safe (GH-135434) Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- (cherry picked from commit 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…python#136658) pythongh-116738: Make grp module thread-safe (pythonGH-135434) Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available. --------- (cherry picked from commit 9363703) Co-authored-by: Alper <alperyoney@fb.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Make
grpmodule methodsgetgrgid()andgetgrnam()thread-safe when the GIL is disabled andgetgrgid_r()/getgrnam_r()C APIs are not available.run_concurrently()totest.support.threading_helperto resuse across multiple tests.cc: @mpage @colesbury @Yhg1s